import _axios from '@/tool/http.js'

export const addRules = (param) => {
    let options = {
        url: api.crm + '/scoreInfo/conf',
        method: 'POST',
        data: JSON.stringify(param),
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
export const getRules = () => {
    let options = {
        url: api.crm + '/scoreInfo/conf/list',
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
// 获取会员等级
export const getLevels = () => {
    let options = {
        url: api.crm + '/levelInfo/getList',
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}